package com.xjrsoft.module.taskSchedule.service.impl;

import com.xjrsoft.module.taskSchedule.entity.XjrTsScheme;
import com.xjrsoft.module.taskSchedule.mapper.XjrTsSchemeMapper;
import com.xjrsoft.module.taskSchedule.service.IXjrTsSchemeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 任务调度模板表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-11-10
 */
@Service
public class XjrTsSchemeServiceImpl extends ServiceImpl<XjrTsSchemeMapper, XjrTsScheme> implements IXjrTsSchemeService {

    public boolean updateState(String schemeId, Integer state) {
        XjrTsScheme  scheme = new XjrTsScheme();
        scheme.setId(schemeId);
        scheme.setIsActive(state);
        return this.updateById(scheme);
    }

}
